package com.jiang.blackjack.card

/**
 *
 * @ProjectName:    BlackJack
 * @ClassName:      DiamondCard
 * @Description:     java类作用描述
 * @Author:         江
 * @CreateDate:     2020/3/1 19:41
 */
class DiamondCard(faceSeed: Int) : Card(faceSeed) {
    override fun initIcon() {
        when (faceSeed + 1) {
            1 -> resIcon = CardIconHolder.DIAMOND_A
            2 -> resIcon = CardIconHolder.DIAMOND_2
            3 -> resIcon = CardIconHolder.DIAMOND_3
            4 -> resIcon = CardIconHolder.DIAMOND_4
            5 -> resIcon = CardIconHolder.DIAMOND_5
            6 -> resIcon = CardIconHolder.DIAMOND_6
            7 -> resIcon = CardIconHolder.DIAMOND_7
            8 -> resIcon = CardIconHolder.DIAMOND_8
            9 -> resIcon = CardIconHolder.DIAMOND_9
            10 -> resIcon = CardIconHolder.DIAMOND_10
            11 -> resIcon = CardIconHolder.DIAMOND_J
            12 -> resIcon = CardIconHolder.DIAMOND_Q
            13 -> resIcon = CardIconHolder.DIAMOND_K
            else -> CardIconHolder.DEFAULT
        }
    }
}